<template>
    <button @click="login">登录页</button>
    <p>{{ store.userinfo.name }}</p>
</template>
<script setup lang="ts">
import {useRouter} from 'vue-router'
import {userStore} from '../../store/module/userStore'
let store = userStore()

let router = useRouter()
let login=()=>{
    router.push('login')
}
</script>